package com.im.app.service;

import com.im.app.model.Conversations;

public interface ConversationsService {

    int insert(Conversations conversations);

    Conversations selectByGroup(String ownerUserId,String groupId);

    Conversations selectByUser(String ownerUserId,String userId);

    int updateByGroup(Conversations conversations);

    int updateByUser(Conversations conversations);

    int updateIsPinned(Integer isPinned, String conversationId);

    int clearUnreadCount(String conversationId);
}

